﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using VK.Comm;
using VK.Casemeet.Merchants;
using VK.Casemeet.TravelLogs;

namespace VK.Casemeet.Web.ShopFront
{
    public partial class TravelLogDetail : System.Web.UI.Page
    {
        public ShopEntity shop = new ShopEntity();
        public TravelLogEntity travelLog = new TravelLogEntity();

        protected void Page_Load(object sender, EventArgs e)
        {
            int shopID = Util.GetRouteDataInt("ShopID");
            if (shopID != 0)
            {
                shop = ShopBLL.GetShop(shopID);
                (this.Master as Site).shop = shop;
                ShopCard1.shop = shop;
            }

            int travelLogID = Util.GetRouteDataInt("TravelLogID");

            if (travelLogID != 0)
            {
                travelLog = TravelLogBLL.GetTravelLog(travelLogID);
            }
        }
    }
}